package com.hsm1;

import java.util.Scanner;

public class Sale {

    public static Drink select(String drink){
        Drink d = null;
        if("咖啡".equals(drink)){
            d = new Coffee();
        }
        if("奶茶".equals(drink)){
            d = new MilkTea();
        }
        if("可乐".equals(drink)){
            d = new Cola();
        }
        return d;
    }

}
